package cn.cttic.base.api.domain.vo;

import cn.cttic.base.api.domain.BaseProduct;
import cn.cttic.common.translation.annotation.Translation;
import cn.cttic.common.translation.constant.TransConstant;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;


/**
 * 产品套餐视图对象 base_product
 *
 * @author Times.Studio
 * @date 2024-09-17
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = BaseProduct.class)
public class BaseProductVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     *
     */
    @ExcelProperty(value = "")
    private String id;

    /**
     * 产品名称
     */
    @ExcelProperty(value = "产品名称")
    private String productName;

    /**
     * 设备
     */
    @ExcelProperty(value = "设备")
    private String deviceId;

    private String deviceName;

    private BaseDeviceVo deviceInfo;

    /**
     * 作业规范
     */
    private String fieldWorkGroupId;

    /**
     * 规范名称
     */
    @ExcelProperty(value = "规范名称")
    private String fieldWorkGroupName;

    /**
     * 产品缩略图
     */
    @ExcelProperty(value = "产品缩略图")
    private String productThumbnail;

    /**
     * 产品缩略图Url
     */
    @Translation(type = TransConstant.OSS_ID_TO_URL, mapper = "productThumbnail")
    private String productThumbnailUrl;
    /**
     * 产品海报
     */
    @ExcelProperty(value = "产品海报")
    private String productPoster;

    /**
     * 产品海报Url
     */
    @Translation(type = TransConstant.OSS_ID_TO_URL, mapper = "productPoster")
    private String productPosterUrl;
    /**
     * 产品描述
     */
    @ExcelProperty(value = "产品描述")
    private String productIntroduction;

    /**
     * 详细资料
     */
    @ExcelProperty(value = "详细资料")
    private String productDetail;


    /**
     * 创建时间
     */
    private LocalDateTime createTime;


}
